#include <QtGui/QGuiApplication>
#include <QtQml/QQmlContext>
#include "gamecontroller.h"
#include "qtquick2applicationviewer.h"
#include "gamedatamodel.h"
#include "guitools.h"

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);

		GameDataModel m;
		GameController c(&m);
		GUITools gt;
    QtQuick2ApplicationViewer viewer;
    viewer.setMainQmlFile(QStringLiteral("qml/cards/main.qml"));
		viewer.rootContext()->setContextProperty("gameConroller", &c);
		viewer.rootContext()->setContextProperty("gameData", &m);
		viewer.rootContext()->setContextProperty("GUITools", &gt);
    viewer.showExpanded();

    return app.exec();
}
